<?php
/**
 * @Name: StatusRequest.php
 * @Author: yashuai<1762910894@qq.com>
 */

namespace app\common\requests;

use app\common\requests\PackingRequest;

class StatusRequest extends PackingRequest
{

    public function rules()
    {
        return [
            'ID'     => 'require|number|egt:1',
            'Status' => 'require|number|egt:1'
        ];
    }

    public function message()
    {
        return [
            'Status.require' => '缺少状态参数',
            "Status.number"  => '状态参数类型异常',
            "Status.egt"     => '状态参数类型异常',
            'ID.require'     => '缺少记录ID参数',
            "ID.number"      => '记录ID参数类型异常',
            "ID.egt"         => '记录ID参数类型异常'
        ];
    }

}
